#@adminLayout()

#define content()
<div class="am-cf am-padding am-padding-bottom-0">
  <div class="am-fl am-cf">
    <strong class="am-text-primary am-text-lg">添加管理员</strong>
  </div>
</div>
<hr>
<form action="/admin/administrator/save" id="adminForm" class="am-form" method="post">
  #include("_form.html")
</form>

<script>
function submitForm() {
  var password = $("#password").val();
  var repassword = $("#repassword").val();
  if(password != repassword) {
    alert("两次输入口令不一致,请重新输入");
    $("#password").val("");
    $("#repassword").val("");
    return;
  }
  $("#adminForm").submit();
}
</script>

#end